#pragma once

#include <memory>
#include "context.h"
#include "framework/input.h"

namespace cyb
{

class Context_Common : public IContext
{
public:
	virtual void AddInputListener( std::shared_ptr<InputListener> input )
	{
		m_inputListeners.push_front( input );
	}

	virtual void RemoveInputListener( std::shared_ptr<InputListener> input )
	{
		m_inputListeners.remove( input );
	}

protected:
	InputListenerList m_inputListeners;
};

}	// namespace cyb